import request from '@/utils/request'

// 查询学生成绩列表
export function listScore(query) {
    return request({
        url: '/business/score/list',
        method: 'get',
        params: query
    })
}

// 查询学生成绩详细
export function getScore(id) {
    return request({
        url: '/business/score/' + id,
        method: 'get'
    })
}

// 新增学生成绩
export function addScore(data) {
    return request({
        url: '/business/score',
        method: 'post',
        data: data
    })
}

// 修改学生成绩
export function updateScore(data) {
    return request({
        url: '/business/score',
        method: 'put',
        data: data
    })
}

// 删除学生成绩
export function delScore(id) {
    return request({
        url: '/business/score/' + id,
        method: 'delete'
    })
}

// 修改学生成绩
export function getScoreItem(data) {
    return request({
        url: '/business/score/getScoreItem',
        method: 'get',
        params: data
    })
}

// 修改学生成绩
export function updateStuScore(data) {
    return request({
        url: '/business/score/updateStuScore',
        method: 'post',
        data: data
    })
}


// 修改学生成绩
export function stuReady(data) {
    return request({
        url: '/business/score/stuReady',
        method: 'post',
        data: data
    })
}

// 修改学生成绩
export function getReadyStu(data) {
    return request({
        url: '/business/score/getReadyStu',
        method: 'post',
        data: data
    })
}

// 修改学生成绩
export function getAllLsmpZb() {
    return request({
        url: '/business/score/getAllLsmpZb',
        method: 'post'
    })
}


// 修改学生成绩
export function getSchoolScoreList(data, groupId) {
    return request({
        url: '/business/score/getSchoolScoreList?raceId=' + data + '&groupId=' + groupId,
        method: 'post',
        data: data
    })
}

export function getBigScreenData(groupId) {
    return request({
        url: '/business/score/getBigScreenData?groupId=' + groupId,
        method: 'post'
    })
}

export function getScoreBigScreen(subId, groupId) {
    return request({
        url: '/business/score/getScoreBigScreen?subId=' + subId + "&groupId=" + groupId,
        method: 'post'
    })
}


// 修改学生成绩
export function getStudentScoreList(data) {
    return request({
        url: '/business/score/getStudentScoreList?raceId=' + data,
        method: 'post',
        data: data
    })
}

export function showStuInfo(data) {
    return request({
        url: '/business/score/showStuInfo',
        method: 'post',
        data: data
    })
}

